<HTML><HEAD>
<TITLE>netwib doc_html (version 5.39.0)</TITLE>
</HEAD><BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H2><A HREF="../../index.html">main index</A></H2>
<H2><A HREF="../net.html">section index</A></H2><HR><BR>
<PRE>

<FONT COLOR="#880000">/*-------------------------------------------------------------*/</FONT>
typedef struct <FONT COLOR="#000088">netwib_conf_ip_index</FONT> <FONT COLOR="#000088">netwib_conf_ip_index</FONT>;

<FONT COLOR="#880000">/*-------------------------------------------------------------*/</FONT>
typedef struct {
  <FONT COLOR="#000088">netwib_uint32</FONT> devnum;
  <FONT COLOR="#880000">/* ip configuration */</FONT>
  <FONT COLOR="#000088">netwib_ip</FONT> ip;
  <FONT COLOR="#000088">netwib_ip</FONT> mask; <FONT COLOR="#880000">/* set for IPv4 */</FONT>
  <FONT COLOR="#000088">netwib_uint32</FONT> prefix; <FONT COLOR="#880000">/* set for IPv6 */</FONT>
  <FONT COLOR="#880000">/* point to point configuration */</FONT>
  <FONT COLOR="#000088">netwib_bool</FONT> ispointtopoint;
  <FONT COLOR="#000088">netwib_ip</FONT> pointtopointip;
} <FONT COLOR="#000088">netwib_conf_ip</FONT>;

<FONT COLOR="#880000">/*-------------------------------------------------------------*/</FONT>
<FONT COLOR="#880000">/* Name : netwib_conf_ip_index_init
   Description :
     Initialize a <FONT COLOR="#000088">netwib_conf_ip_index</FONT> used to loop through
     a netwib_conf_ip.
   Input parameter(s) :
     pitem : address of <FONT COLOR="#000088">netwib_conf_ip</FONT> which will be set
             on each call of netwib_conf_ip_next
   Input/output parameter(s) :
   Output parameter(s) :
     **ppindex : <FONT COLOR="#000088">netwib_conf_ip_index</FONT> allocated and initialized
   Normal return values :
     <FONT COLOR="#000044">NETWIB_ERR_OK</FONT> : ok
*/</FONT>
<FONT COLOR="#000088">netwib_err</FONT> <B>netwib_conf_ip_index_init</B>(<FONT COLOR="#000088">netwib_conf_ip</FONT> *pitem,
                                     <FONT COLOR="#000088">netwib_conf_ip_index</FONT> **ppindex);

<FONT COLOR="#880000">/*-------------------------------------------------------------*/</FONT>
<FONT COLOR="#880000">/* Name : netwib_conf_ip_index_close
   Description :
     Close a netwib_conf_ip_index.
   Input parameter(s) :
   Input/output parameter(s) :
     **ppindex : <FONT COLOR="#000088">netwib_conf_ip_index</FONT> to close
   Output parameter(s) :
   Normal return values :
     <FONT COLOR="#000044">NETWIB_ERR_OK</FONT> : ok
*/</FONT>
<FONT COLOR="#000088">netwib_err</FONT> <B>netwib_conf_ip_index_close</B>(<FONT COLOR="#000088">netwib_conf_ip_index</FONT> **ppindex);

<FONT COLOR="#880000">/*-------------------------------------------------------------*/</FONT>
<FONT COLOR="#880000">/* Name : netwib_conf_ip_index_next
   Description :
     Get next entry.
   Input parameter(s) :
   Input/output parameter(s) :
     *pindex : <FONT COLOR="#000088">netwib_conf_ip_index</FONT> to work on
   Output parameter(s) :
   Normal return values :
     <FONT COLOR="#000044">NETWIB_ERR_OK</FONT> : ok
     <FONT COLOR="#000044">NETWIB_ERR_DATAEND</FONT> : end reached
*/</FONT>
<FONT COLOR="#000088">netwib_err</FONT> <B>netwib_conf_ip_index_next</B>(<FONT COLOR="#000088">netwib_conf_ip_index</FONT> *pindex);

<FONT COLOR="#880000">/*-------------------------------------------------------------*/</FONT>
<FONT COLOR="#880000">/* Name : netwib_conf_ip_display
   Description :
     Print ip configuration.
   Input parameter(s) :
   Input/output parameter(s) :
   Output parameter(s) :
     *pbuf : <FONT COLOR="#000088">netwib_buf</FONT> receiving data
   Normal return values :
     <FONT COLOR="#000044">NETWIB_ERR_OK</FONT> : ok
*/</FONT>
<FONT COLOR="#000088">netwib_err</FONT> <B>netwib_conf_ip_display</B>(void);
<FONT COLOR="#000088">netwib_err</FONT> <B>netwib_buf_append_conf_ip</B>(<FONT COLOR="#000088">netwib_buf</FONT> *pbuf);
</PRE><BR><BR><HR><BR>
<H2><A HREF="../../index.html">main index</A></H2>
<H2><A HREF="../net.html">section index</A></H2>
</BODY></HTML>
